﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using KeRui.Common;
using System.Collections.Generic;

public partial class Manage_System_IpBlockList : System.Web.UI.Page
{
    public List<KeRui.Model.SysIpBlock> listIp;
    public int BlockModule = PageRequest.GetInt("BlockModule", 0);//限制模块 0系统 1用户 -----//(Int32)Request.Form["BlockModule"];
    public int BlockType = PageRequest.GetInt("BlockType", 0);//限制方式 0白名单 1黑名单

    protected void Page_Load(object sender, EventArgs e)
    {
        //检查登录
        ManageHelper.CheckAdminLogin();
        //权限
        ManageHelper.CheckAdminPower("system_memberipblockmanage");
        //这是业务层
        KeRui.BLL.SysIpBlock bll = new KeRui.BLL.SysIpBlock();
        //从业务层加载数据
        listIp = bll.GetList(BlockModule, BlockType);
       
    }
}
